<% if not info.info_type.code.weather_alert? %>
  <% if info.emails_spread_status.done? %>
  <%= link_to_remote "邮件推广", 
        :update => "spread_tools_#{info.id}",
        :url => emails_spread_info_url(info),
        :method => :put,
        :html => {
          :title => info.emailed_at ? "最后一次推广于#{time_ago_in_words info.emailed_at,false}前" : '未做过推广',
          :id => "emails_spread_#{info.id}"
        }
   %>
   <% else  %>
  <%= link_to_remote "邮件#{t info.emails_spread_status},放弃?", 
        :update => "spread_tools_#{info.id}",
        :url => give_up_info_url(info),
        :method => :put,
        :with => "'&give_up_type=email'",
        :html => {
          :title => '邮件推广',
          :id => "emails_spread_#{info.id}"
        }
   %> 
   <% end %>
   <% if info.sms_spread_status.done? %>
   <%= link_to_remote "短信推广", 
         :update => "spread_tools_#{info.id}",
         :url => sms_spread_info_url(info),
         :method => :put,
         :html => {
           :title => info.smed_at ? "最后一次推广于#{time_ago_in_words info.smed_at,false}前" : '未做过推广',
           :id => "sms_spread_#{info.id}"
         }
     %>
  <% else %>   
  <%= link_to_remote "短信#{t info.sms_spread_status},放弃?", 
        :update => "spread_tools_#{info.id}",
        :url => give_up_info_url(info),
        :method => :put,
        :with => "'&give_up_type=sm'",
        :html => {
          :title => '短信推广',
          :id => "sms_spread_#{info.id}"
        }
   %> 
  <% end %>
<% end %>  